package com.ji;

/**
 * Title:
 * Description:
 * Author:吉
 * Since:2017/5/19
 * Version:1.1.0
 */
public class NioSession {

    private int sessionId;
    private NioConnection connection;

    public NioSession(NioConnection connection,int sessionId) {
        this.connection = connection;
        this.sessionId=sessionId;
    }


    public void close() {
        connection.close();
    }

    public void write(String msg) {
        connection.write(msg);
    }

    public int getSessionId() {
        return sessionId;
    }
}
